'use strict';

// Declare app level module which depends on filters, and services

angular.module('myApp', [
  'myApp.controllers',
  'myApp.filters',
  'myApp.services',
  'myApp.directives',
  'googlechart'
]).
config(function ($routeProvider, $locationProvider) {
  $routeProvider.
  // Home
    when('/', {
        templateUrl: 'partials/patient-all',
        controller: AllPatientsCtrl
      }).
  // All Patients
      when('/patient-all', {
        templateUrl: 'partials/patient-all',
        controller: AllPatientsCtrl
      }).
  // Patients details
      when('/patient-details', {
        templateUrl: 'partials/patient-details',
        controller: PatientDetailCtrl
      }).
  // Consult
      when('/patient-consult', {
        templateUrl: 'partials/patient-consult',
        controller: ConsultCtrl
      }).
  // Audio
      when('/patient-audio', {
        templateUrl: 'partials/patient-audio',
        controller: AudioCtrl
      }).
  // Documents
      when('/patient-documents', {
        templateUrl: 'partials/patient-documents',
        controller: DocumentCtrl
      }).
  // All Medecins
      when('/medecin-all', {
        templateUrl: 'partials/medecin-all',
        controller: AllMedecinsCtrl
      }).
  // Medecins details
      when('/medecin-details', {
        templateUrl: 'partials/medecin-details',
        controller: MedecinDetailCtrl
      }).
  // Default
	  otherwise({
        redirectTo: '/'
      });

  $locationProvider.html5Mode(true);
});
